package com.example.mapper;

import com.example.entity.Pass;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author wanted
 * @since 2021-11-23
 */
@Repository
public interface PassMapper extends BaseMapper<Pass> {
    @Update("update pass set password = #{pass} where username= #{name}")
    int updateUser(String name, String pass);

    @Delete("delete from user where id = #{id}")
     int deleteByid(int id);
}
